package xjf;

public class Play {
    public static void main(String[] args) {
        MyLinkedList<String> list=new MyLinkedList<>();
        list.add("古力娜扎");
        list.add("迪丽热巴");
        list.add("马尔扎哈");
        System.out.println(list);
        list.add(1,"刘德华");
        System.out.println(list);
        list.remove(1);
        System.out.println(list);
        System.out.println(list.remove("迪丽热巴"));
        System.out.println(list.remove("李小璐"));
        int a = list.indexOF("古力娜扎");
        System.out.println(a);
        int b = list.size();
        System.out.println(b);
        String c = list.set(1, "刘德华");
        System.out.println(c);
        System.out.println(list);
        boolean d = list.contains("李晓红");
        System.out.println(d);
        boolean e = list.contains("古力娜扎");
        System.out.println(e);
        System.out.println(list);

    }

}
